package com.cqupt.mapper;

import com.cqupt.model.pojo.Word;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface WordMapper extends BaseMapper<Word> {


    List<Word> getByBookId(@Param("bookId") int bookId);

    List<Word> getAllUnknown(@Param("userId") int userId);

    List<Word> getAllLearned(@Param("userId") int userId, @Param("bookId") int bookId);

    List<Word> getReview(@Param("userId") int userId, @Param("bookId") int bookId, @Param("time") long time);

    List<Word> getWord(@Param("bookId") int bookId, @Param("word") String word);

    List<Word> getByPage(@Param("bookId") int bookId, @Param("end") int end);
}




